// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__49417571_E9A4_4F82_B555_3B50EBA520EA__INCLUDED_)
#define AFX_MAINFRM_H__49417571_E9A4_4F82_B555_3B50EBA520EA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "TextualStatusBar.h"
class CTextualStatusBar;
class CMainFrame : public CMDIFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	CMainFrame();

// Attributes
	protected:  // control bar embedded members
	CMenu		m_OrgMenu;
	CTextualStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
private:
	// used for full-screen mode
	BOOL		m_bFullScreenMode;
	BOOL		m_bStatusBarWasVisible;
	BOOL		m_bToolBarWasVisible;
	CRect		m_mainRect;
	CToolBar*	m_pwndFullScreenBar;
	BOOL		m_bChildMax;

// Operations
public:
	inline CStatusBar&	  GetStatusBar() { return m_wndStatusBar; }
	void FullScreenModeOn();
	void FullScreenModeOff();
	inline BOOL IsFullScreenNow(){return m_bFullScreenMode;}
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif


// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnViewFullscreen();
	afx_msg void OnClose();
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__49417571_E9A4_4F82_B555_3B50EBA520EA__INCLUDED_)
